Beginning Google Glass Development by Jeff Tang

Beginning Google Glass Development by Jeff Tang

Author:Jeff Tang
Language: eng
Format: epub, pdf
Publisher: Apress, Berkeley, CA


Touchtone Detection

Well, although Mark can recognize any musical note played, he cannot detect a touchtone sound entered on a phone. You may not know that each key, whether in a push-button telephone or a smartphone, generates two unique tones of specific frequencies (that’s why it’s called Dual-Tone Multi-Frequency, or DTMF) when pressed (see http://searchnetworking.techtarget.com/definition/DTMF for more information). But I have a friend who’s been working in computer telephony for years, and he can easily detect any touchtone (so people had better not enter some secret phone numbers around him!). So, how do you implement the touchtone detection in Glass? This problem may also be interesting to those of you who want to impress your friends or are just curious to see how Glass can decode the numbers entered on a phone. You’ll also see how AudioRecord is used to capture the raw audio data, which gets processed by the recognizer.

After some searching and testing, I found another open source project as a good candidate for being integrated to your project. The steps to add touchtone detection to the VoiceAndAudio project are as follows: 1.Download the open source project at https://code.google.com/p/dtmf-decoder/source/browse/ .



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.